@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-8">
            <img src="/storage/{{ $post->image }}" alt="" class="w-100">
        </div>

        <div class="col-4">
            <div>
                <div class="d-flex align-items-center">
                    <div class="pe-3">
                        <img src="/storage/{{ $post->user->profile->image  }}" alt="" class="rounded-circle w-100" 
                        style="max-width: 40px">
                    </div>
                
                    <div>
                        <div>
                            <b>
                                <a class="text-decoration-none" href="/profile/{{ $post->user->id }}">
                                    <span class="text-dark ">
                                        {{ $post->user->username  }}
                                    </span>
                                </a> 
                                <a href="#" class="ps-3">Follow</a>
                            </b>
                        </div>
                    </div>
                </div>
                

                <hr>

                <p>
                    <span>
                        <b>
                            <a class="text-decoration-none" href="/profile/{{ $post->user->id }}">
                                <span class="text-dark">{{ $post->user->username }}</span>
                            </a>
                        </b>
                    </span>     {{ $post->caption }}
                </p>
        </div>
    </div>
</div>
@endsection